home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / chatserver.h next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  508 b   |  26 lines

  1. #ifndef _CL_CHATSERVER_H
  2. #define _CL_CHATSERVER_H
  3.  
  4. struct chatmsg {
  5.     struct Message m;
  6.     APTR    id;
  7.     ULONG    cmd;
  8.     char    data[ 512 ];
  9. };
  10.  
  11. #define CM_LOGIN 1        // id is ServerPort, Data is Nickname
  12. #define CM_LOGOFF 2        // leave chat
  13. #define CM_DATA 3
  14. #define CM_GETUSERLIST 4
  15. #define CM_GETSERVERNAME 5
  16. #define CM_BBSMSG 6
  17. #define CM_NOTICE 7
  18.  
  19. #define CE_NICKINUSE 77    // Error NICK in Use
  20. #define CE_INVNICK 78    // Error NICK invalid
  21. #define CE_BANNED 79    // Error User banned
  22.  
  23. #define CPNAME "ChatServer.cmd"
  24.  
  25. #endif
  26.